<?php
namespace common\widgets;

/**
 * Site controller
 */
class Config
{
	public static function widgets($widget = '', $key = 'name'){
		$config = [

			'_baidumap'=>[
				'name'=> '定位坐标'
			],
	
		];
		if ($widget){
			$data = isset($config[$widget]) ? $config[$widget] : [];
			if ($key){
				$data = isset($data[$key]) ? $data[$key] : '';
			}
			return $data;
		}else{
		    return $config;	
		}
	}
	
	
}